package com.unpor.route;

import com.jfinal.config.Routes;
import com.unpor.controller.g.GAdminController;
import com.unpor.interceptor.WebInterceptor;

/**
 * Created by benhailong on 2017/7/30.
 * 后台路由配置全部在这里
 */
public class AdminRoute extends Routes{
    public void config() {
        setBaseViewPath("/WEB-INF");
        addInterceptor(new WebInterceptor());
        add("/admin", GAdminController.class); // 配置路由
    }
}
